import Vue from 'vue'
import App from './App.vue'

/*这两行引入VueRouter*/
import VueRouter from 'vue-router'
import router from './router/index.js'

/*这三行引入element*/
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

Vue.config.productionTip = false
import * as directives from './utils/directive'
Vue.use(directives)

new Vue({
	router,
	render: h => h(App),
	beforeCreate() {
		Vue.prototype.$bus = this//配置全局总线，bus有总线的意思
	},
}).$mount('#app')